# encoding:utf-8
import tesserocr
from PIL import Image
import sys, locale
print(sys.getdefaultencoding())
print(locale.getdefaultlocale())
image_en = Image.open('en.png')
image_ch = Image.open('ch.png')
print(tesserocr.image_to_text(image_en))
text = tesserocr.image_to_text(image_ch, "chi_sim")
print(text)
